@import "../../../global.less";

.button-group {
    position: absolute;
    top: 50%;
    right: 48px;
}

.button-group-item {
    margin: 8px 0;
}

.left-menu {
    position: relative;
    opacity: 0.8;

    ul {
        width: 78px;
        padding: 0;
        position: absolute;
        left: -78px;
        top: -30px;
        list-style: none;
        border: 1px solid #ccc;
        background-color: #fff;

        li {
            height: 24px;
            line-height: 24px;
            border-bottom: 1px solid #ccc;
            text-indent: 12px;
            transition: color .3s;
            cursor: pointer;

            &:hover {
                color: @primary-color
            }
        }
    }
}

.switch {
    float: right;
    margin-right: 8px;
}

.icon-wrapper {
    padding: 7px;
    background-color: #fff;
    width: 38px;
    height: 38px;
}

.icon {
    margin: auto;
    font-size: 24px;
}

.map {
    //width: 100%;
    //height: calc(~"100vh - 136px");
    width: 100vw;
    height: 100vh;
}

.front-page-wrapper {
    //height: calc(~"100vh");
    width: 100%;
    overflow: hidden;
    height: calc(~"100vh - 136px");
    position: relative;
}

.front-page-wrapper-fullscreen {
    width: 100%;
    overflow: hidden;
    height: calc(~"100vh");
    position: relative;
}

.front-map-overlay {
    width: 100%;
    height: calc(~"100vh - 136px");
    overflow-y: hidden;
    background-color: #fff;
}

.map-layer-search {
    position: absolute;
    top: 36px;
    left: 140px;
}

.location-search {
    position: absolute;
    left: 24px;
    top: 24px;
}

.map-legend {
    position: absolute;
    bottom: 24px;
    left: 24px;
    min-height: 280px;
    max-height: 400px;
    min-width: 280px;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #ccc;
}

.map-legend-button {
    position: absolute;
    bottom: 40px;
    left: 40px;
}

.fullscreen {
    position: absolute;
    top: calc(~"50% - 20px");
    left: -12px;
    z-index: 9;
}

.map-switch {
    position: absolute;
    width: 94px;
    height: 68px;
    right: 24px;
    bottom: 24px;
    transition: 0.3s all;
    margin: 0;
    overflow: hidden;
    background-color: #fff;
    padding: 4px;
    border-radius: 4px;

    &:hover {
        width: 274px;
    }

    ul {
        width: 274px;
        padding: 0;
        margin: 0;
    }

    li {
        width: 86px;
        height: 60px;
        cursor: pointer;
        display: inline-block;
        list-style: none;
        background-image: url(../../../assets/img/map-bg.png);
        margin-right: 4px;
        color: #fff;
        text-align: right;
        padding-top: 40px;
        padding-right: 4px;


        &:last-child {
            margin-right: 0;
        }
    }
}

.map-default {
    background-position: 0 0;
}

.map-satellite {
    background-position: 0 120px;
}

.map-topographic {
    background-position: 0 60px;
}

:host ::ng-deep .ol-scale-line {
    left: 24px;
    bottom: 24px;
}

.map-control {
    position: absolute;
    left: 40px;
    top: calc(~"50% - 16px");

    div {
        &:first-child {
            margin-bottom: 24px;
        }
    }
}

.layersPanelState {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s all;
}

.layers-panel-switch {
    position: absolute;
    right: 0;
    top: 50%;
    font-size: 40px;
    transition: 0.3s all;
    cursor: pointer;

    &:hover {
        color: @primary-color;
    }
}

